import axiosInstance from "../axiosInstance";

const shopCarInfo = {
    addToShopCar({goods_id}) {
        return axiosInstance.patch(`/shopCarInfo/addToShopCar`, {
            goods_id
        })
    },
    subToShopCar({goods_id}) {
        return axiosInstance.patch(`/shopCarInfo/subToShopCar`, {
            goods_id
        })
    },
    deleteById(id) {
        return axiosInstance.delete(`/shopCarInfo/deleteById/${id}`);
    },
    getMyShopCarList() {
        return axiosInstance.get(`/shopCarInfo/getMyShopCarList`);
    },
    /**
     * @param Ids 这里的Ids是一个字符串，如果有多个，用逗号隔开
     */
    getMyCheckoutShopCarList(Ids) {
        return axiosInstance.get(`/shopCarInfo/getMyCheckoutShopCarList/${Ids}`);
    },
}
export default shopCarInfo;